import request from "@/utils/request";
import cfg from "@/config/config";

const ztBanCiDep = {
  //获取班次列表
  getBacCiList: param => {
    return request("post", cfg.apiUrl + "api/ztBanCiDep/getBacCiList", param);
  },
  //根据部门Id获取班次列表
  getBacCiListByDepId: param => {
    return request("post", cfg.apiUrl + "api/ztBanCiDep/getBacCiListByDepId", param);
  },

  /**方法savaBdBanCiDep
   * 保存班次与部门
   * @param ztBanCiDepDto depSerial 部门ID
   * @param ztBanCiDepDto banCiId 班次ID(xx,xx,xx,xx)
   * @param ztBanCiDepDto id 班次与部门查询表ID
   * @param request
   * @return
   * @throws UnknownHostException
   */
  savaBdBanCiDep: param => {
    return request("post", cfg.apiUrl + "api/ztBanCiDep/savaBdBanCiDep", param);
  },

  /**方法deleteBanCiDep
   * 删除班次与部门
   * @param ztBanCiDepDto depSerial 部门ID
   * @param request
   * @return
   * @throws UnknownHostException
   */
  deleteBanCiDep: param => {
    return request("post", cfg.apiUrl + "api/ztBanCiDep/deleteBanCiDep", param);
  }
};

export default ztBanCiDep;
